﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TjZheng.JiaLi.Process
{
    public class JiaLiContext
    {
        /// <summary>
        /// 窗体标题
        /// </summary>
        public string FormTitle { get; set; }
        /// <summary>
        /// 是否批量下载
        /// </summary>
        public bool IsBatch { get; set; }
        /// <summary>
        /// 是否停止下载
        /// </summary>
        public bool IsStop { get; set; }
        /// <summary>
        /// 是否异步
        /// </summary>
        public bool IsAsync { get; set; }
        /// <summary>
        /// 错误重复执行次数
        /// </summary>
        public int ErrorRepeat { get; set; }
        /// <summary>
        /// 写入路径
        /// </summary>
        public string WritePath { get; set; }
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 页数
        /// </summary>
        public int PageCount { get; set; }
        /// <summary>
        /// 目标地址
        /// </summary>
        public string TargetUrl { get; set; }
        /// <summary>
        /// 分页地址格式
        /// </summary>
        public string PageUrlFormat { get; set; }
        /// <summary>
        /// 单独页面下载
        /// </summary>
        public string SingleUrl { get; set; }
        /// <summary>
        /// 下载目录
        /// </summary>
        public string Directory { get; set; }
    }
}
